﻿using Battle;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ItemComponent
{
    public class Gun_Tow : Cannon
    {
        protected async override void FireAsync(ICanHitObj target)
        {
            await BulletFactory.CreateBulletAsync<Bullet_Tow>(GetBulletData(target));
        }

#if UNITY_EDITOR
        public new static STMyComponetData GetMyComponetData(ST_GunData gunData,ST_RangeData rangeData)
        {
            STMyComponetData componentData = Cannon.GetMyComponetData(gunData,rangeData);
            componentData.strType = typeof(Gun_Tow).FullName;

            return componentData;
        }
#endif
    }
}
